<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<tfoot>
<tr>
    <td colspan="7" style="text-align: right;">
        <ul class="pagination" style="margin: 0px;margin-right: 20px">
            <c:if test="${datas.pageIndex<=1}">
                <li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a></li>
            </c:if>
            <c:if test="${datas.pageIndex>1}">
                <li>
                    <a href="javascript:goPage(${datas.pageIndex-1})" aria-label="Previous">
                        <span aria-hidden="true">&laquo;</span>
                    </a>
                </li>
            </c:if>

            <c:forEach var="index" begin="1" end="${datas.pageTotal}">
                <c:if test="${datas.pageIndex==index}">
                    <li class="active"><a href="#">${index} <span class="sr-only">(current)</span></a></li>
                </c:if>
                <c:if test="${datas.pageIndex!=index}">
                    <li><a href="javascript:goPage(${index})">${index}</a></li>
                </c:if>
            </c:forEach>
            <c:if test="${datas.pageIndex==datas.pageTotal}">
                <li class="disabled"><a href="#" aria-label="Previous"><span aria-hidden="true">&raquo;</span></a></li>
            </c:if>
            <c:if test="${datas.pageIndex<datas.pageTotal}">
                <li>
                    <a href="javascript:goPage(${datas.pageIndex+1})" aria-label="Next">
                        <span aria-hidden="true">&raquo;</span>
                    </a>
                </li>
            </c:if>
        </ul>
    </td>
</tr>
</tfoot>